﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

using Angerona.Model;

namespace Angerona.Views
{
    public partial class Settings : PhoneApplicationPage
    {
        public Settings()
        {
            InitializeComponent();
        }

        private void Button_Click_Reset_Cars(object sender, RoutedEventArgs e)
        {
            if (MessageBox.Show(AngeronaLang.warningTextResetApp, AngeronaLang.warningTitleResetApp, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
                App.ViewModel.ResetAllCars();
        }

        private void Button_Click_Reset_DataBase(object sender, RoutedEventArgs e)
        {
            if (MessageBox.Show(AngeronaLang.warningTextResetApp, AngeronaLang.warningTitleResetApp, MessageBoxButton.OKCancel) == MessageBoxResult.OK)
                App.ViewModel.ResetDatabase();
        }
    }
}